
//
//  NewCouponsCell.m
//  LuxuryGoods
//
//  Created by DCQ on 2018/5/23.
//  Copyright © 2018年 Future. All rights reserved.
//

#import "NewCouponsCell.h"
#import "CanReceiveCoupnsListModel.h"
@interface NewCouponsCell ()
@property (weak, nonatomic) IBOutlet UILabel *valueLabel;
@property (weak, nonatomic) IBOutlet UILabel *conditionsLabel;
@property (weak, nonatomic) IBOutlet UILabel *timeLimitLable;
@property (weak, nonatomic) IBOutlet UILabel *goodsNameLabel;

@end
@implementation NewCouponsCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (void)setupCouponsInfo:(CanReceiveCoupnsModel *) model{
    
    self.valueLabel.text =[NSString stringWithFormat:@"%@", model.par_value];
    self.conditionsLabel.text =[NSString stringWithFormat:@"使用满%@可以使用",model.use_condition];
    self.goodsNameLabel.text = model.coupon_name;
    self.timeLimitLable.text = [NSString  stringWithFormat:@"有效期 %@天",model.expiry];
}


@end
